import Mock from 'mockjs';

export default [{
		key: "/deposit-back-request/all",
		method: "get",
		param: {
			storeId: 1,
			"statu|1": ['REQ','REJ','AGG','RUN','BCK'],
		},
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'data|3-7': [
				{
					'backId': '1',
					'reason': "@cparagraph()",
					'amount|5-9': /[0-9]/,
					"statu|1": ['REQ','REJ','AGG','RUN','BCK'],
					'clientId': 1,
					'clientName': '@ctitle()',
					'phone|11': /[0-9]/,
					'headImgUrl': "@image('100x100')",
					'storeId': 1,
					'storeName': '@ctitle()'
				}
			]
		})
	},

	{
		key: "/deposit-back-request/page",
		method: "get",
		param: {
			storeId: 1,
			"statu|1": ['REQ','REJ','AGG','RUN','BCK'],
			clientName: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						'backId': '1',
						'reason': "@cparagraph()",
						'amount|5-9': /[0-9]/,
						"statu|1": ['REQ','REJ','AGG','RUN','BCK'],
						'clientId': 1,
						'clientName': '@ctitle()',
						'phone|11': /[0-9]/,
						'headImgUrl': "@image('100x100')",
						'storeId': 1,
						'storeName': '@ctitle()'
					}, ]

				},
			});
		}
	},
	
	{
		key: "/deposit-back-request/info",
		method: "post",
		param: {
			'reason': "@cparagraph()",
			'amount|5-9': /[0-9]/,
			"statu": 'REQ',
			'clientId': 1,
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {},
			});
		}
	},
	
	{
		key: "/deposit-back-request/info",
		method: "put",
		param: {
			backId: 1,
			"statu": 'REQ',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {},
			});
		}
	},
	
	

];
